﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace CMT
{
    public partial class Form3 : Form
    {
        public string ModelName { get; set; }
        public Product.Product_Style Product_Style;
        public List<string> Motion_List = new List<string>();
        public List<string> Screen_List = new List<string>();
        public List<string> Key_List = new List<string>();

        public Form3()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            ModelName = textBox1.Text;
            if (radioButton1.Checked == true) Product_Style = Product.Product_Style.RomoteControl_White;
            if (radioButton2.Checked == true) Product_Style = Product.Product_Style.RomoteControl_black;
            this.Close();
        }

        private void InitUI()
        {
           
            if(Motion_List.Count>0)
            {
                for(int i=0;i<Motion_List.Count;i++)
                {
                    comboBox1.Items.Add(Motion_List[i]);
                }
            }

            if(Screen_List.Count>0)
            {
                for(int i =0;i<Screen_List.Count;i++)
                {
                    comboBox2.Items.Add(Screen_List[i]);
                }
            }

            if(Key_List.Count>0)
            {
                for(int i=0;i<Key_List.Count;i++)
                {
                    comboBox3.Items.Add(Key_List[i]);
                }
            }
        }

        private void Form3_Shown(object sender, EventArgs e)
        {
            InitUI();
        }
    }
}
